package di

import (
	"fmt"
	"git.mycaigou.com/gfyx/micro-gfyx-bigdata-service/http_server/controller"
)

func (c *inject) InjectController() {
	errs := make([]error, 0)

	err := c.Provide(controller.NewHealthController)
	errs = append(errs, err)

	err = c.Provide(controller.NewBigdataController)
	errs = append(errs, err)

	err = c.Provide(controller.NewWriteController)
	errs = append(errs, err)

	err = c.Provide(controller.NewOpptyController)
	errs = append(errs, err)

	err = c.Provide(controller.NewAuthController)
	errs = append(errs, err)

	fmt.Printf("InjectController errors:%+v\n", errs)
}
